<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class DATABASE_CONFIG</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class DATABASE_CONFIG</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
													</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Database configuration class.</p>
<p class="description"><p>You can specify multiple configurations for production, development and testing.</p><p>driver =&gt; The name of a supported driver; valid options are as follows: 		mysql 		- MySQL 4 &amp; 5, 		mysqli 		- MySQL 4 &amp; 5 Improved Interface (PHP5 only), 		sqlite		- SQLite (PHP5 only), 		postgres	- PostgreSQL 7 and higher, 		mssql		- Microsoft SQL Server 2000 and higher, 		db2			- IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2) 		oracle		- Oracle 8 and higher 		firebird	- Firebird/Interbase 		sybase		- Sybase ASE 		adodb-[drivername]	- ADOdb interface wrapper (see below), 		odbc		- ODBC DBO driver</p><p>You can add custom database drivers (or override existing drivers) by adding the  appropriate file to app/models/datasources/dbo.  Drivers should be named 'dbo_x.php',  where 'x' is the name of the database.</p><p>persistent =&gt; true / false  Determines whether or not the database should use a persistent connection</p><p>connect =&gt;  ADOdb set the connect to one of these 	(http://phplens.com/adodb/supported.databases.html) and 	append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)  For all other databases, this setting is deprecated.</p><p>host =&gt;  the host you connect to the database.  To add a socket or port number, use 'port' =&gt; #</p><p>prefix =&gt;  Uses the given prefix for all the tables in this database.  This setting can be overridden  on a per-table basis with the Model::$tablePrefix property.</p><p>schema =&gt;  For Postgres and DB2, specifies which schema you would like to use the tables in. Postgres defaults to  'public', DB2 defaults to empty.</p><p>encoding =&gt;  For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting to the  database.  Uses database default.</p></p>
		<p class="notes">
			Located in <a class="field" href="_config---database.php.html">/config/database.php</a> (line <span class="field"><a href="../../__filesource/fsource_cake_cake-app-config_configdatabase.php.html#a79">79</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$default" title="details" class="var-name">$default</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$test" title="details" class="var-name">$test</a>
				</div>
											</div>
		</div>
	</div>


	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<span class="disabled">Vars</span>
						
			
								</div>
		<div class="info-box-body">
			<a name="var$default" id="$default"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$default</span>
			 = <span class="var-default">array(<br />		'driver' =&gt; 'mysql',<br />		'persistent' =&gt; false,<br />		'host' =&gt; 'localhost',<br />		'login' =&gt; 'root',<br />		'password' =&gt; 'root',<br />		'database' =&gt; 'depot_development',<br />		'prefix' =&gt; '',<br />		'port' =&gt; '/Applications/MAMP/tmp/mysql/mysql.sock', <br />	)</span>			(line <span class="line-number"><a href="../../__filesource/fsource_cake_cake-app-config_configdatabase.php.html#a81">81</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$test" id="$test"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$test</span>
			 = <span class="var-default">array(<br />		'driver' =&gt; 'mysql',<br />		'persistent' =&gt; false,<br />		'host' =&gt; 'localhost',<br />		'login' =&gt; 'user',<br />		'password' =&gt; 'password',<br />		'database' =&gt; 'test_database_name',<br />		'prefix' =&gt; '',<br />	)</span>			(line <span class="line-number"><a href="../../__filesource/fsource_cake_cake-app-config_configdatabase.php.html#a92">92</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
						
		</div>
	</div>
	


	<p class="notes" id="credit">
		Documentation generated on Fri, 06 Nov 2009 10:53:58 +0900 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>